<%@page language="java" isELIgnored="false" contentType="text/html"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix='fn' uri='http://java.sun.com/jsp/jstl/functions'%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div style="clear: both;">
Farm Name: ${animal.kraal.farm.name } >> Kraal Name: ${animal.kraal.name } >> Animal Name: <a href="farm?action=view&item=kraalanimals&kraalid=${animal.kraal.id}">${animal.name}</a> >>
</div>
<div>
<div  class="buttonStrip">
		<input type="hidden" id="animalid" value="${animal.id }" />
		<a id="btnEditIndivalAnimal" class="uiButton" href="farm?action=edit&item=animal&animalid=${animal.id}">Edit</a>
</div>
		<div class="animalImg">
			<img alt="Animal picture" src="farm?action=view&item=pic&animalid=${animal.id }&kraalid=${animal.kraal.id}" id="animalPicture" name="animalPicture" height="50px;" width="50px;" />
		</div>
		<div class="animalInfo">
			<div class="left">
				<p>
				<label>Name: </label>
				${animal.name }
			</p>
			<p>
				<label>Ear Tag: </label>
				${animal.earTag }
			</p>
			<p>
				<label>Type: </label>
				${animal.type.name }
			</p>
			<p>
				<label>Health Status: </label>
				${animal.healthStatus.name }
			</p>
			<p>
				<label>D.O.B: </label>
				<fmt:formatDate value="${animal.dateOfBirth }" pattern="dd/MM/yyyy"/>
			</p>
			<p>
				<label>Color: </label>
				${animal.colour.name }
			</p>
			<p>
				<label>Kraal: </label>
				${animal.kraal.name }
			</p>
			<p>
				<label>Purchase Date: </label>
				<fmt:formatDate value="${animal.purchaseDate }" pattern="dd/MM/yyyy"/>
			</p>
			<p>
				<label>Breed: </label>
				${animal.breed.name }
			</p>
			<p>
				<label>Birth Wieght: </label>
				${animal.birthWeight}
			</p>
			</div>
			<div class="right">
			<p>
				<label>Status: </label>
				${animal.status.name}
			</p>
			<p>
				<label>Description: </label>
				${animal.description}
			</p>
			<p>
				<label>Selling Price: </label>
				${animal.sellingPrice}
			</p>
			<p>
				<label>Buying Price: </label>
				${animal.buyingPrice}
			</p>
			</div>
		</div>
<div>
</div>
</div>